using UnityEngine;

/// <summary>
/// 在Inspector面板为方法创建可点击按钮的特性
/// <para>使用方法：[MethodButton("按钮名称")]</para>
/// </summary>
public class MethodButtonAttribute : PropertyAttribute
{
    public readonly string buttonName;
    
    public MethodButtonAttribute(string buttonName = null)
    {
        this.buttonName = buttonName;
    }
}